//
//  NKParentCell.m
//  NiKi
//
//  Created by qiang chen on 16/6/23.
//  Copyright © 2016年 qiang chen. All rights reserved.
//

#import "NKParentCell.h"
#import "UIButton+OxTitleAndImageType.h"
#import "NKNewsModel.h"

@interface NKParentCell () {
    
    __weak IBOutlet UILabel *_titleLb;
    __weak IBOutlet UILabel *_contentLb;
    __weak IBOutlet UIButton *_readBtn;    
    __weak IBOutlet UIButton *_agreeBtn;
    __weak IBOutlet UIImageView *_leftImageV;
}

@end
@implementation NKParentCell

- (void)awakeFromNib {
    [super awakeFromNib];
    [_readBtn layoutButtonWithEdgeInsetsStyle:OxButtonEdgeInsetsLeft space:5];
    [_agreeBtn layoutButtonWithEdgeInsetsStyle:OxButtonEdgeInsetsLeft space:5];
}

- (void)setModel:(NKNewsModel *)model {
    _model = model;
    _titleLb.text = model.title;
    _contentLb.text = model.content;
    [_leftImageV sd_setImageWithURL:[NSURL URLWithString:model.imageUrl] placeholderImage:nil];
}



@end
